<script type="text/javascript">
		Yutil.en.enhance();
</script>	

<% 
	String currentUserId = (String) session.getValue("user");
	Person currentUser = PersonService.$.getPerson(currentUserId);
	List persons = new ArrayList();
	persons.add(currentUser);
	List children = PersonService.$.getPersons(currentUser.getId());
	if(children != null)
	persons.addAll(children);
	
	JFreeChart chart = ChartHelper.$.appraise(persons); 	 
	String filename = ServletUtilities.saveChartAsPNG(chart, 500, 300, null, session); 
	String graphURL =request.getContextPath()+"/servlet/DisplayChart?filename="+filename; 
%>
	报表
	<img src="<%=graphURL %>" width=500 height=300 border=0 usemap="#<%=filename%>"> 

<script type="text/javascript">
</script>

<%@ page import="com.esms.bean.Enterprise" %>
<%@ page import="com.esms.bean.*" %>
<%@ page import="com.esms.struts.service.*" %>
<%@ page import="com.esms.struts.service.ChartHelper"%>
<%@ page import="java.util.*" %>

<%@ page import="org.jfree.chart.JFreeChart"%>
<%@ page import="org.jfree.chart.servlet.ServletUtilities"%>

<%@ page contentType="text/html;charset=utf-8" %>